package cn.edu.scau.nursingcenter.entiry;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
/**
 * 用户信息表User
 * @author feng
 *
 */
@ApiModel(value = "用户信息表")
@Entity(name = "user")
@Table(name = "user")
@Data
@Builder
@AllArgsConstructor
public class User implements Serializable{

	/**
	 * 用户编号 主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "用户编号")
	private Integer user_id;
	/**
	 * 用户登录名称
	 */
	@ApiModelProperty(value = "用户登录名称")
	private String user_name;
	/**
	 * 用户登录密码
	 */
	@ApiModelProperty(value = "用户登录密码")
	private String user_password;
	/**
	 * 无参构造方法
	 */
	public User() {}
	private static final long serialVersionUID = -612716645426008894L;
}
